# -*- coding: utf-8 -*-

"""
@author: Laowang
@contact: QQ:1125564921
@Created on: 2022/6/21
@Remark: 
"""

class XTAPISETTING:
    """ Xt platform API configuration items """

    PUBLIC_KEY = "c15c7459-b65a-43af-8165-7ac0ae853154"
    SECRET_KEY = "939a9ccc101f4df7075a1d0cdc2d3f79e88b00bd"

    API_DOMAIN_TEST = "http://api.xt-qa.com"
    API_DOMAIN_PRO = "pppppppppp"
    API_DOMAIN_DEV = "ddddddddd"
    API_DOMAIN = API_DOMAIN_TEST

class XT4APISETTING:
    """ Xt platform API configuration items """

    PUBLIC_KEY = "c15c7459-b65a-43af-8165-7ac0ae853154"
    SECRET_KEY = "939a9ccc101f4df7075a1d0cdc2d3f79e88b00bd"

    API_DOMAIN_TEST = "http://sapi.xt-uat.com"
    API_DOMAIN_PRO = "https://sapi.xt.com"
    API_DOMAIN_DEV = "http://sapi.xt-uat.com"
    API_DOMAIN = API_DOMAIN_TEST


class XTFUTUREAPISETTING:
    """ Xt platform API configuration items """

    PUBLIC_KEY='b1000aa0-9119-4ce7-a963-e7a0fe0055cb'
    SECRET_KEY='b9992066608e6b84b531cbf1bf36b06e9a79add8'

    API_DOMAIN_TEST = "http://fapi.xt-qa.com"
    API_DOMAIN_PRO = "pppppppppp"
    API_DOMAIN_DEV = "ddddddddd"
    API_DOMAIN = API_DOMAIN_TEST


class XT4FUTUREAPIUMSETTING:
    """ Xt platform API configuration items """

    PUBLIC_KEY='b1000aa0-9119-4ce7-a963-e7a0fe0055cb'
    SECRET_KEY='b9992066608e6b84b531cbf1bf36b06e9a79add8'

    API_DOMAIN_TEST = "http://fapi.xt-qa.com"
    API_DOMAIN_PRO = "https://fapi.xt.com"
    API_DOMAIN_DEV = "ddddddddd"
    API_DOMAIN = API_DOMAIN_TEST


class XT4FUTUREAPICMSETTING:
    """ Xt platform API configuration items """

    PUBLIC_KEY='b1000aa0-9119-4ce7-a963-e7a0fe0055cb'
    SECRET_KEY='b9992066608e6b84b531cbf1bf36b06e9a79add8'

    API_DOMAIN_TEST = "https://dapi.xt.com"
    API_DOMAIN_PRO = "pppppppppp"
    API_DOMAIN_DEV = "ddddddddd"
    API_DOMAIN = API_DOMAIN_TEST


class BINANCEAPISETTING:
    """ Binance platform API configuration items """

    PUBLIC_KEY = 'XXNxw5YhKRqxqtm6Arw9Q7cnukMrO0QtBE6oUHzozsnIBKljnerp1laAAl6KtUwu'
    SECRET_KEY = 'gWt9AgrhiueWaHNYnF42sx4emuROU6ct55Y2RqHYRUVsVRNTz6A5Z63d6bFVuoTS'

    API_DOMAIN_TEST = "https://api.binance.com"
    API_DOMAIN_PRO = 'https://api.binance.com'
    API_DOMAIN_DEV = ""
    API_DOMAIN = API_DOMAIN_PRO


class FTXAPISETTING:
    """ Ftx platform API configuration items """

    PUBLIC_KEY = '4HBl4ZV5lzqZeNF-ruhpD8DbajdmewZ0AhegNmGM'
    SECRET_KEY = 'Uz6MtIAd4ruIfI2yr5Ms0GPV54xsL7oKdG6mCyf4'

    API_DOMAIN_TEST = "https://ftx.com/api/"
    API_DOMAIN_PRO = 'https://ftx.com/api/'
    API_DOMAIN_DEV = ""
    API_DOMAIN = API_DOMAIN_PRO


class REDISSETTING:
    DEPTH_KEY_CONF = {
        'xt': 'depth',
        'ftx': 'depth',
        'binance': 'depth'
    }

    TRADE_KEY_CONF = {
        'xt': 'trade',
        'ftx': 'trade',
        'binance': 'trade'
    }
    
    TICKER_KEY_CONF = {
        'xt': 'ticker',
        'ftx': 'ticker',
        'binance': 'bookTicker'
    }
    
    DB_CONF = {
        'market': 0,
        'depth': 0,
        'trade': 1,
        'ticker': 2,
    }
